﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="CreaMotion.UserControls.TableItem"
	x:Name="UserControl" Height="31.333" Width="246.667">
	<UserControl.Resources>
		<Storyboard x:Key="OnMouseLeftButtonDown1">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="UserControl">
				<EasingDoubleKeyFrame KeyTime="0" Value="31.333"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="195.833"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonDown">
			<BeginStoryboard x:Name="OnMouseLeftButtonDown1_BeginStoryboard" Storyboard="{StaticResource OnMouseLeftButtonDown1}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave">
			<StopStoryboard BeginStoryboardName="OnMouseLeftButtonDown1_BeginStoryboard"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Grid x:Name="LayoutRoot">
		<Image HorizontalAlignment="Left" Margin="4.5,0.333,0,0" Source="/NhibernateClassBuilder;component/Images/database_table.png" Stretch="Fill" Width="32" Height="30" VerticalAlignment="Top"/>
		<TextBlock x:Name="labTableName" Margin="44.5,6,0,5" TextWrapping="Wrap" Text="&lt;TableName&gt;" FontSize="16"/>
		<Rectangle HorizontalAlignment="Left" Margin="40.5,-0.667,0,0" Stroke="Black" Width="1" Height="31" VerticalAlignment="Top"/>
		<ListView x:Name="ListFields" Margin="0,30.333,0,0">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="Field Name" Width="135"
					 DisplayMemberBinding="{Binding FieldName}"/>
					<GridViewColumn Header="Type" Width="95"
					 DisplayMemberBinding="{Binding FieldType_db}" />
				</GridView>
			</ListView.View>
		</ListView>
		<Image x:Name="ImgAttach" HorizontalAlignment="Right" Margin="0,-0.667,0,0" Source="/NhibernateClassBuilder;component/Images/clip.png" Stretch="Fill" Width="32" Height="32" VerticalAlignment="Top" Visibility="Hidden"/>
	</Grid>
</UserControl>